﻿#include "FITKAbaAbstractInertia.h"

namespace Interface {

    bool FITKAbaAbstractInertia::copy(FITKAbstractDataObject* obj)
    {
        FITKAbaAbstractInertia* iner = dynamic_cast<FITKAbaAbstractInertia*>(obj);
        if (iner == nullptr)
            return false;
        this->_modelID = iner->_modelID;
        this->_componentID = iner->_componentID;
        this->m_activeState = iner->m_activeState;
        return true;
    }

    bool FITKAbaAbstractInertia::getActiveState() const
    {
        return m_activeState;
    }

    void FITKAbaAbstractInertia::setActiveState(bool stat)
    {
        m_activeState = stat;
    }

}
